#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<signal.h>

int main(void)
{
	sigset_t sig_set;
	sigset_t old_set;
	int ret;
	sigemptyset(&sig_set);
	ret=sigprocmask(SIG_BLOCK,&sig_set,&old_set);
	if(-1==ret){
		perror("sigprocmask error");
		exit(-1);
	}
	if(1==sigismember(&old_set,SIGINT))
		printf("sigset include SIGINT\n");
	else
		printf("sigset not include SIGINT\n");
	exit(0);
	return 0;
}
